The AAs_NMPs_Sacs_classifier
****************************************************************************************************************************************************

 1. Introduction

The AAs_NMPs_Sacs_classifier is an automatic classification system based on machine learning for amino acid, nucleoside monophosphate and saccharide nanopore events.

This code contains three parts as follows:
a. Import dataset.
b. Train Ensemble Classifier.
c. Make predictions with the returned "trainedClassifier" on predicting dataset.

 2. Operating procedures: 

-Unzip the AAs_NMPs_Sacs_classifier.rar to local folder. 
-Open AAs_NMPs_Sacs_classifier.m in MATLAB.
-Enter the file name of the training set in line 2. // example: Training Set.xlsx
-Enter the file name of the testing set in line 3. // example: Testing Set.xlsx
-Enter the file name of the predicting dataset in line 4. // example: Predicting Set.xlsx
-Run AAs_NMPs_Sacs_classifier.m. The running time is about one minutes.

3. Output

a. The values of the variables "ValidationAccuracy" and "TestingAccuracy" are output in the command window.
b. The confusion matrix and scatter plot with predicted labels are output in the figure panel and saved as "output.jpg" in local folder.